<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  backoffice
 */

class m_backoffice_views_loginInputView extends f_core_View
{
	public function execute()
	{
		$boService = m_backoffice_services_BackOfficeService::getInstance();
		
		$values = $this->getModel();		
		$template = f_template_Template::getInstance()->disableCache();
		if(isset($values['errors']) == true)
		{
			$template->assign("errors", $values['errors']);
			$template->assign("values", $values['values']);
		}
		
		$boService->setTitle("Inscription");
		$content = $template->buildTemplateRender("backoffice", "newLogin.html");

		$boService->renderBackOffice($content, "MainLogin.html");
	}
}